/**
 * 输入两个数,输出较大的数(三目运算符)
 * 
 */
package work2022_07_11;

import java.util.Scanner;

public class Test5 {

	public static void main(String[] args) {
		double num1;
		double num2;

		Scanner sc = new Scanner(System.in);
		
		System.out.println("请输入第一个数:");
		num1 = sc.nextDouble();
		
		System.out.println("请输入第二个数:");
		num2 = sc.nextDouble();
		
		System.out.println(num1>=num2 ? num1:num2);
		
		
		

	}

}
